new Vue({
  el: '#app',
  template: '#page-template',
  methods: {
    getImgPath (bio) {
      return `http://cloud.io-gym.com/${bio.file_path}`
    },
    processData () {
      let _data = _.groupBy(this.data, 'user_id')
      this.groupedData = _.reduce(_data, (acc, v, k) => {
        acc.push({
          id: k,
          data: v
        })
        return acc
      }, [])
    }
  },
  data () {
    return {
      data: [],
      groupedData: [],

    }
  },
  mounted () {
    this.data = data
    this.processData()
  }
})